const str = 'abac'

const isPalindrome = (str) => {
    return str.split('').reverse().join('') === str
}

const validPalindrome = (s) => {

}